﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
        <script type="text/javascript" src="../ext/adapter/ext/ext-base.js"></script>
        <script type="text/javascript" src="../ext/ext-all.js"></script>
        <script type="text/javascript" src="../ext/ext-lang-zh_CN.js"></script>
        <script type="text/javascript" src="WeightVehicleInfoList.js"></script>
        <script type="text/javascript">
            Ext.onReady(function () {
                var clientName = GetQueryValue1("clientName"); //区名
                var date = GetQueryValue1("date"); //日期
                date = dateChange(date);
                var nameFactory = GetQueryValue1("nameFactory"); //中转站类型or处理厂类型
                var type = GetQueryValue1("type"); //中转站or处理厂

                var functionName = GetQueryValue1("functionName");

                if (functionName == "GetVehicleWeightByDistrict") {
                    createWeightVehiclePanel();
                    updataDataVehicleWeightByDistrict(clientName, date, type, nameFactory);
                }

                function dateChange(date) {

                    date = date.replace("年", "-");
                    date = date.replace("月", "-");
                    date = date.replace("日", "");
                    return date;
                }

                function GetQueryValue1(queryName) {
                    var reg = new RegExp("(^|&)" + queryName + "=([^&]*)(&|$)", "i");
                    var r = window.location.search.substr(1).match(reg);
                    if (r != null) {
                        return decodeURI(r[2]);
                    } else {
                        return null;
                    }
                }

                //                var aa = currentService;
                //                var p = new Ext.Panel({
                //                    title: ' My Panel ', // 标题
                //                    collapsible: true, // 右上角上的那个收缩按钮，设为false则不显示
                //                    renderTo: 'WeightVehicleInfoList', // 这个panel显示在html中id为container的层中
                //                    width: 400,
                //                    height: 200,
                //                    html: " <p>我是内容，我包含的html可以被执行！</p> " //panel 主体中的内容，可以执行html代码
                //                });
            });
        </script>
</head>
<body>
<div id="WeightVehicleInfoList"></div>
</body>
</html>
